<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<base href="<%=basePath%>">
<title>job detail</title>
<link href="daoepingcss/job.css" rel="stylesheet" type="text/css" />
<link href="daoepingcss/daoeping.css" rel="stylesheet" type="text/css" />
<link href="daoepingcss/jobdetail.css" rel="stylesheet" type="text/css" />
<link href="js/pagination.css" rel="stylesheet" type="text/css" />
<link href="js/thickbox/thickbox.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="daoepingjs/script_common.js"></script>
<script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="js/jquery.pagination.js"></script>
<script type="text/javascript" src="daoepingjs/pageBzn_comments.js"></script>
<script type="text/javascript" src="daoepingjs/script_common.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="js/thickbox/thickbox-compressed.js" ></script>

<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="kindeditor/plugins/code/prettify.js"></script>
    
</head>
<style type="text/css">
#large {
	position: absolute;
	display: none;
	z-index: 999;
}
</style>



<script type="text/javascript">



	$(document).ready(function() {
		$('#tab ul').idTabs();
	});

	
	/* KindEditor.ready(function(K) {
		 editor = K.create('#pri_pccontent', {
			cssPath : 'kindeditor/plugins/code/prettify.css',
			uploadJson : 'upload_json.jsp',
			width : 580,
			height : 400,
			//fileManagerJson : '../jsp/file_manager_json.jsp',
				items : [
	'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
	'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
	'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
	'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', 
	'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
	'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
	'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
	'anchor', 'link', 'unlink', '|', 'about'
],
			allowFileManager : false,
		});
				K('input[name=setHtml]').click(function(e) {
					editor.html('<h3>Hello KindEditor</h3>');
				
		});
		
	}); */
	
	
	
	
	function controller() {
		if ($('#hidden').is(":hidden")) {
			$('#hidden').slideDown();
		} else {
			$('#hidden').slideUp();
		}
	}
	
	function hideContentView(str){
		$(str).hide();
	}
</script>



<body class="bg-eee">

	<input type="hidden" name="usr_userProduction.usr_user.id"	value="<%=request.getSession().getAttribute("userid")%>"/> 

<%--  <%=request.getSession().getAttribute("userid")%>--%>
	<input id="pri_pcuserid" name="bzn_comment.usr_user.id" value="5"
		type="hidden" />

	<input id="pub_pcuserid" name="bzn_comment.usr_user.id" value="5"
		type="hidden" />
		<input id="draft_pcuserid" name="bzn_comment.usr_user.id" value="5"
		type="hidden" />

	<div id="header">
		<div id="datetime"></div>

	</div>
	<div id="conDetail">
		<div class="left">
			<h4>Tool</h4>
			<p>
			    <a class="link" href="getUserProductionByUserId.action?usr_userProduction.usr_user.id=<%=request.getSession().getAttribute("userid")%>">Production</a>	
			</p>
			<p>
			    <a class="link" href="view/user/editProduction.jsp">Modified Production</a>
			</p>
			<p>
			    <a class="link" href="view/user/addProduction.jsp">Add Production</a>
			</p>
			
			<p>
				<a class="link" href="view/user/pindex.jsp">Question</a>
			</p>
			<p>
				<a class="link" onclick="initDraft(0 , 'draft')">My draft</a>
			</p>
			<p>
				<a class="link">Invited</a>
			</p>
			<p>
				<a class="link">Concern</a>
			</p>
			

			<h4>Friend</h4>
			<p>
				<a class="link">frind1</a>
			</p>
			<p>
				<a class="link">frind2</a>
			</p>
			<p>
				<a class="link">frind3</a>
			</p>
			<p>
				<a class="link">frind4</a>
			</p>
			<p>
				<a class="link">frind5</a>
			</p>
			<h4>Test Type</h4>
			<p>
				<a class="link">Automation</a>
			</p>
			<p>
				<a class="link">Performance</a>
			</p>
			<p>
				<a class="link">Security</a>
			</p>
			<p>
				<a class="link">Function</a>
			</p>

		</div>

		<div class="usual" id="tab">


			<ul>
				<li><a class=selected href="#tab1" onclick="initTab('pri')">Private</a></li>
				<li><a href="#tab2" onclick="initTab('pub')">Public</a></li>
				<li><a href="#tab3">Skill</a></li>
			</ul>

			<!-- private -->
			<div id=tab1>
				&nbsp;
				<div>
					<div id="pri_pcsearch">
						<input class="search" type="text"
							name="Bzn_jobdescription.bsc_jobtype.name" size="20"
							id="pri_pckeyword" value="key word" onfocus="this.value=''"
							onblur="if(this.value=='')this.value='key word'" />&nbsp;<a
							class="button" onclick="searchPc();" style="cursor: pointer;">Search</a><!-- <a
							class="link" href="view/user/pindex.jsp">Add question</a> -->
							<a href="#TB_inline?height=550&width=600&inlineId=pri_addcomment" title="Question" class="thickbox" type="button"  onclick="hideContentView('#pri_pccontentview')">add question</a>
	
							
					</div>

				</div>
				&nbsp;
				<div id='pri_addcomment' style='display:none'>
					
						<div>
						
							Title:<input type="text" size="30" maxlength="255"
								name="bzn_comment.title" id="pri_pctitle" /><input
								type="hidden" id="pri_pcparentid" />
						
						</div>	
						<br>
						
						<div>
						
						
							Categoty:<select id='pri_pcselectcategory' ></select>
							</div>
							
						<br>
						<div id='pri_textareaview'>
						<textarea name="bzn_comment.content"
								id="pri_pccontentview" style="width: 380px; height: 300px; ">
		 		
		 		</textarea>
						</div>
						<div id='pri_textarea'>
						

								
								<textarea name="bzn_comment.content"
								id="pri_pccontent" rows="" cols="" style=" ">
		 		</textarea>
		 		
								
						</div>
						<div id="divload"
							style="top: 50%; right: 50%; position: absolute; padding: 0px; margin: 0px; z-index: 999"></div>


						<div id='pri_mycommentlist'></div>



						<p id='pri_addlink'>
							<a class="link" onclick="mypcsubmit()">Add</a>&nbsp;<a
								class="link" onclick="mypcdraftsubmit()">Add to draft</a>
						</p>
						<p id='pri_enlink' style='display: none'>
							<a class="link" onclick="addCommentUI()">Comment</a>&nbsp; <a
								class="link" href="view/user/pindex.jsp">Back</a>
						</p>
						<p id='pri_molink' style='display: none'>
							<a class="link" onclick="submitmypcmodify()">submit</a>&nbsp; <a
								class="link" href="view/user/pindex.jsp">Back</a>
						</p>

						<!-- 	<input type="file" name="uploadify" id="uploadify" /> <img
						id="img" height="220" width="180" style="display: none">
					<div id="div_progress"></div> -->
						<div id='pri_comment' style='display: none'>
							<textarea rows="5" cols="100" name="bzn_comment.content"
								id="pri_pccomment"></textarea>
							<a class="link" onclick="submitComment()">submit</a><a
								class="link" onclick="cancelCommentUI()">cancel</a>
						</div>


				</div>



				<div id='pri_commentlist'></div>

			</div>

	<!-- public -->
			<div id='tab2'>
				&nbsp;
				<div>
					<div id="pub_pcsearch">
						<input class="search" type="text"
							name="Bzn_jobdescription.bsc_jobtype.name" size="20"
							id="pub_pckeyword" value="key word" onfocus="this.value=''"
							onblur="if(this.value=='')this.value='key word'" />&nbsp;<a
							class="button" onclick="searchPc();" style="cursor: pointer;">Search</a>
							<a href="#TB_inline?height=550&width=600&inlineId=pub_addcomment" title="Question" class="thickbox" type="button" onclick="hideContentView('#pub_pccontentview')">add question</a>
	
					</div>

				</div>
				&nbsp;
				<div id='pub_addcomment'>
					
					<div >

						
							Title:<input type="text" size="30" maxlength="255"
								name="bzn_comment.title" id="pub_pctitle" /><input
								type="hidden" id="pub_pcparentid" /><select id='pub_pcselectcategory' ></select>
						
						&nbsp;

					<div id='pub_textareaview' >
						<textarea name="bzn_comment.content"
								id="pub_pccontentview" style="width: 380px; height: 300px; ">
		 		
		 		</textarea>
						</div>
						<div id='pub_textarea'>
						<textarea name="bzn_comment.content"
								id="pub_pccontent" rows="" cols="" style=" ">
		 		222222222</textarea>
		 		
								
						</div>

						<div id="divload"
							style="top: 50%; right: 50%; position: absolute; padding: 0px; margin: 0px; z-index: 999"></div>


						<div id='pub_mycommentlist'></div>



						<p id='pub_addlink'>
							<a class="link" onclick="mypcsubmit()">Add</a>
							<a
								class="link" onclick="mypcdraftsubmit()">Add to draft</a>
						</p>
						<p id='pub_enlink' style='display: none'>
							<a class="link" onclick="addCommentUI()">Comment</a>&nbsp; <a
								class="link" onclick="initTab('pub')">Back</a>
						</p>
						<p id='pub_molink' style='display: none'>
							<a class="link" onclick="submitmypcmodify()">submit</a>&nbsp; <a
								class="link" onclick="initTab('pub')">Back</a>
						</p>

						<!-- 	<input type="file" name="uploadify" id="uploadify" /> <img
						id="img" height="220" width="180" style="display: none">
					<div id="div_progress"></div> -->
						<div id='pub_comment' style='display: none'>
							<textarea rows="5" cols="100" name="bzn_comment.content"
								id="pub_pccomment"></textarea>
							<a class="link" onclick="submitComment()">submit</a><a
								class="link" onclick="cancelCommentUI()">cancel</a>
						</div>

					</div>

				</div>
				<div id='pub_commentlist'></div>
			</div>
			<div id=tab3>skill show</div>
		</div>
		<!-- my draft -->
		<div class="usual" >
		
			<br>
				<div id="draft_pcsearch">
						<input class="search" type="text"
							name="Bzn_jobdescription.bsc_jobtype.name" size="20"
							id="draft_pckeyword" value="key word" onfocus="this.value=''"
							onblur="if(this.value=='')this.value='key word'" />&nbsp;<a
							class="button" onclick="searchDraft();" style="cursor: pointer;">Search</a>
					</div>
			<br>
			
			<div id='mydraft'>
			
			<h3 class="comp"></h3>
			<div class="chat">

				<h3 class='listtitle'>
					Title:<input type="text" size="30" maxlength="255"
						name="bzn_commentdraft.title" id="draft_pctitle" /><input type="hidden"
						id="draft_pcid" /><input type="hidden"
						id="draft_pcflag" /><select id='draft_pcselectcategory' ></select>
				</h3>
				&nbsp;
				
				
				
					<div id='draft_textareaview'>
						<textarea name="bzn_comment.content"
								id="draft_pccontentview" rows="3" cols="5" style="width: 380px; height: 300px; ">
		 		
		 		</textarea>
						</div>
						<div id='draft_textarea' class='listchat'>
						
								<textarea name="bzn_comment.content"
								id="draft_pccontent" rows="" cols="" style=" ">
		 		</textarea>
		 		
								
						</div>
				
				
				

				<div id="divload"
					style="top: 50%; right: 50%; position: absolute; padding: 0px; margin: 0px; z-index: 999"></div>
				<div id='pub_mycommentlist'></div>
				<p id='pub_addlink'>
					<a class="link" onclick="mypcdraftmodify(0)">sbumit</a>
					<a class="link" onclick="addToMyQuestion()">Add to question</a>
				<a class="link" onclick="cancelCommentDraftUI()">cancel</a>
				</p>
				
				<div id='pub_comment' style='display: none'>
					<textarea rows="5" cols="100" name="bzn_comment.content"
						id="pub_pccomment"></textarea>
					
				</div>
				
			
				
			
		</div>
		</div>
		<div id="commentdraftlist" ></div>
		</div>
				

		<div id="Pagination" class="flickr" style="display: none;"></div>
		<div style="height: 500px">&nbsp;</div>
</div>


</body>


</html>
